October 25, 2019
Nicely packaged within RStudio
When you make your text bold, or italic, or create
you are marking certain elements of your text to be formated in a special way. (The heading above is also marked text.)
Markdown modifies this to a very bare bones, text-only, no-mouse-selection-needed process.
## ## Listening on http://127.0.0.1:4326
`code` _italics_ *bold* ### Heading 3 - unnumbered item 1. numbered item
Additionally, R and some other languages can
… into Markdown documents
01:30
The most advanced forms of markdown documents use inputs/parameters.
The tidyverse is an opinionated collection of R packages designed for data science. All packages share an underlying design philosophy, grammar, and data structures.
What does this code do?
Pew_data %>% filter(party5==1) %>% group_by(q1a) %>% summarize(n=n())
What does this code do?
Pew_data %>% # data set filter(party5==1) %>% # select cases group_by(q1a) %>% # set up a group variable summarize(n=n()) # count
library(ggplot2)
and a myriad of extentions to it.
| Group | N (unweighted) | MOE |
|---|---|---|
| Total | 1,203 | +/- 3.3 percentage points |
| Party ID | ||
| Democrats | 342 | +/- 6.2 percentage points |
| Republicans | 273 | +/- 6.9 percentage points |
| Independents | 544 | +/- 4.9 percentage points |
| Dem-leaning Indeps | 199 | +/- 8.3 percentage points |
| Rep-leaning Indeps | 181 | +/- 8.4 percentage points |
A lot of output looks like a table already
# aimed at HTML library(kableExtra) # aimed specifically at MS products library(flextable)
This talk:
https://github.com/skolenik/Mizzou.quant
VCS training, of sorts (~1.5 hrs)
https://happygitwithr.com/ by @JennyBryan
x <- 1 y <- 2
Stas Kolenikov
Twitter [@StatStas](http://twitter.com/StatStas)